add_executable(scene3d-loader WIN32 MACOSX_BUNDLE
    main.cpp
)
qt_add_qml_module(scene3d-loader
    URI scene3d_loader
    VERSION ${PROJECT_VERSION}
    QML_FILES
        AnimatedEntity.qml
        main.qml
        Scene.qml
        Scene2.qml
    NO_RESOURCE_TARGET_PATH
)

target_link_libraries(scene3d-loader PRIVATE
    Qt${QT_VERSION_MAJOR}::3DCore
    Qt${QT_VERSION_MAJOR}::3DInput
    Qt${QT_VERSION_MAJOR}::3DRender
    Qt${QT_VERSION_MAJOR}::Core
    Qt${QT_VERSION_MAJOR}::Gui
    Qt${QT_VERSION_MAJOR}::Qml
    Qt${QT_VERSION_MAJOR}::Quick
)

install(TARGETS scene3d-loader
    BUNDLE DESTINATION .
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

# Consider using qt_generate_deploy_app_script() for app deployment if
# the project can use Qt 6.3. In that case rerun qmake2cmake with
# --min-qt-version=6.3.
